package com.mingqijia.gassafety.shared.utils.commonUtils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

public class SnowflakeUtil {
    /**
     * 获取分布式全局唯一ID
     * @return
     */
    public static long getSnowflakeId(){
        Snowflake snowflake = IdUtil.getSnowflake(1, 1);
        return snowflake.nextId();
    }
}
